package com.anjbo.common;


/**
 * 订单类型
 * @author YS
 *
 */
public enum ThirdEnum {
	
	ORDER_TYPE1(1,"二手房贷款"),
	ORDER_TYPE2(2,"装修贷款"),
	ORDER_TYPE3(3,"抵押贷款"),
	ORDER_TYPE4(4,"信用贷款"),
	ORDER_TYPE5(5,"债务置换贷款"),//原现金赎楼
	ORDER_TYPE6(6,"评估报告"),
	ORDER_TYPE7(7,"1.3倍贷"),
	ORDER_TYPE8(8,"随还贷"),
	ORDER_TYPE9(9,"30年贷"),
	ORDER_TYPE10(10,"债务置换贷款(系统)"),
	ORDER_TYPE11(11,"房产贷款"),
	ORDER_TYPE12(12,"云按揭"),
	;
	
	private Integer code;
	private String name;

	private ThirdEnum(Integer code, String name) {
		this.code = code;
		this.name = name;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public static String getNameByCode(int code){
		String name = "";
		for(ThirdEnum thirdEnum:ThirdEnum.values()){
			if(thirdEnum.getCode().equals(code)){
				name = thirdEnum.getName();
				break;
			}
		}
		return name;
	}
}
